<%@ page import="com.example.oa.Employee" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>employee page</title>
</head>
<c:if test="${sessionScope.role ne 0}">
    <c:set var="error" scope="request" value="Invalid visit."/>
    <%--    <c:redirect url="index.jsp"/>--%>
    <jsp:forward page="index.jsp"/>
</c:if>
<body>
<h1>employee page</h1>
<h3>Welcome: ${sessionScope.name}</h3>
${sessionScope.employee.id}
${sessionScope.employee.name}
${sessionScope.employee.age}
${sessionScope.employee.gender}
<a href="/employee?action=sign_out">Sign out</a>
</body>
</html>
